import Menus from '../../components/Menus/page.vue';
import Navigator from '../../components/Navigator/page.vue';
import {
  V_Navigator
} from '@/src/common/data.js';
export default { 
  data() {
    return {
      navigator: []
    }
  },
  components: {
    Navigator
  },
  methods: {
    handerUrl(menuList) {
      let url = '';
      menuList.forEach((item, index) => {
        if (item.subItems) {
          item.subItems.forEach((subItem, subIndex) => {
            subItem.url = url + subItem.url;
          })
        } else {
          if (item.title == '代传代发') {
            item.url = 'http://demo.tonghua-arch.com/BizUI/#/sttleAccountsList';
          } else {
            item.url = url + item.url;
          }
        }
      })
    }
  },
  mounted() {
    this.navigator = V_Navigator;
    this.handerUrl(this.navigator);
  }
}